home *** CD-ROM | disk | FTP | other *** search
- Path: news.glo.be!news
- From: yanahond@glo.be (Thomas De Vos)
- Newsgroups: comp.lang.c++
- Subject: Re: Allocate > 64k
- Date: Wed, 10 Jan 1996 05:08:15 GMT
- Organization: Globe internetworking
- Message-ID: <4dbnvi$mr7@moon.glo.be>
- References: <4cvq9d$7g9@dub-news-svc-3.compuserve.com>
- NNTP-Posting-Host: iphome6213.glo.be
- X-Newsreader: Forte Free Agent 1.0.82
-
- <75151.03563@compuserve.com> wrote:
-
-
- > jsmithjr@ix.netcom.com(James E. Smith, Jr. ) writes:
- >>Have Borlandc. Can I allocate arrays larger than 64K? I have to use 16
- >>bit compiler to deliver product for Air Force systems. Or, do I have to
- >>build memory manger to handle multiple segments?
-
- >I haven't used BC in a while, but in Microsoft this is what you do - I'm sure
- >BC has something comparable.
-
- >1) use the _huge modifier for your pointers.
-
- >char * _huge hugePtr;
-
- >2) Use halloc( ... )
-
-
- >hugePtr= (char * _huge)halloc( ... );
-
- >I'm not if these are the exact names of the function and modifier, but hopefully it
- >will get you looking in the right direction. Also - check the documentation - I'm
- >not sure, but you might have to compile in huge model to get this to work.
-
- >Hope this helps.
- >Tom Keane
- >75151,03563@compuserve.com
-
-
- I don't know so much about the halloc function, what I know is
- that you can refered a 64kb block in your array .
- If you have an array of 64kb then you can set a pointer to an another
- 64kb block and so on.
-
-
-